package axdoc.rule.def;

import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alibaba.fastjson.JSON;

import axdoc.model.SelectValue;

public class RangeRule extends AbstractRule {

	private static Logger logger = LoggerFactory.getLogger(RangeRule.class);

	protected List<SelectValue> ruleValues = new ArrayList<SelectValue>();

	@Override
	public void initDefaultValue() {
		logger.info("[初始化范围选项][start]");
		SelectValue sv1 = new SelectValue();
		sv1.setId("1");
		sv1.setName(">");
		SelectValue sv2 = new SelectValue();
		sv2.setId("2");
		sv2.setName("=");
		SelectValue sv3 = new SelectValue();
		sv3.setId("3");
		sv3.setName("<");
		ruleValues.add(sv1);
		ruleValues.add(sv2);
		ruleValues.add(sv3);
		logger.info("[初始化范围选项][end][" + (JSON.toJSONString(ruleValues)) + "]");
	}

	public List<SelectValue> getRuleValues() {
		return ruleValues;
	}

	public void setRuleValues(List<SelectValue> ruleValues) {
		this.ruleValues = ruleValues;
	}

}
